package string;

/**
 * Created by Veronica on 2017/4/11.
 */
public class StringDemo05 {
    public static void main(String[] args) {
        StringBuffer str = new StringBuffer();
        str.append("miao9");
        for (int i =0 ;i<100; i++){
            str.append(i);
        }
        System.out.println(str.toString());
    }
}
/*
public class StringDemo05 {
    public static void main(String[] args) {
        String str = miao9;
        for (int i =0 ;i<100; i++){
            str = str + i;
        }
        System.out.println(str);
    }
}
//每次相加都会开辟一个空间相当耗资源
*/